/**
 * 
 */
package jnzb.control.remote;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * This is the remote object that sits in the RMI registry and allows NZBs to be
 * queued via RMI
 * 
 * @author AA1
 * 
 */
public class JNZBRemoteAgentListener extends UnicastRemoteObject implements JNZBRemoteAgent {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5235184737985062858L;
	private RemoteController remoteController;
	
	public JNZBRemoteAgentListener(RemoteController remoteController) throws RemoteException{
		this.remoteController = remoteController;
	}
	
	/* (non-Javadoc)
	 * @see jnzb.control.remote.JNZBRemoteAgent#queueNZB(java.lang.String)
	 */
	public void queueNZB(String filename) throws RemoteException {		
		remoteController.queueNZB(filename);
	}

}
